package com.ocom.oauth.client;

import com.ocom.common.constant.AppUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "appapi")
public interface AppClientService {

  /**
   * 3.1.查询并注册(/feign/user/findOrRegByPhoneNum)
   * @param phoneNum
   * @return
   */
  @GetMapping(AppUrl.URL_FeignUserFindOrRegByPhoneNum)
  Result findOrRegByPhoneNum(@RequestParam("phoneNum")String phoneNum,@RequestParam("code")String code);



}
